package com.guang.springbootrequestversion.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * @author liguang
 * @date 2022/5/10 13:46
 */
@Setter
@Getter
@ConfigurationProperties(prefix="mycard")
// 只有在容器中的组件才会拥有springboot提供的配置绑定功能
@Component
public class MyCard {
    private Integer id;
    private String name;
}
